x86: don't ignore foreigndom on L2/L3/L4 page table updates
authorJan Beulich <jbeulich@suse.com>
Tue, 5 Dec 2017 16:23:53 +0000 (17:23 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 5 Dec 2017 16:23:53 +0000 (17:23 +0100)
commit7993e3be68558097050bc7495d3b4a00287841e1
treea4fe763dd347aa72d18d36dd3decd67391b80fe5
parentf55d5c074676cf281b1e3e8f43f519a4f6cc7f58
x86: don't ignore foreigndom on L2/L3/L4 page table updates

Silently assuming DOMID_SELF is unlikely to be a good idea for page
table updates. For PGT_writable pages, though, it seems better to allow
the writes, so the same check isn't being applied there.

Also add blank lines between the individual case blocks.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c